package com.yucc.girlimage.io;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.reflect.TypeToken;
import com.yucc.girlimage.io.model.GirlInfo;

import android.content.Context;

public class FolderNameHandler extends JSONHandler {

	public FolderNameHandler(Context context) {
		super(context);
	}

	@Override
	public String parse(String json) throws IOException {

		JsonParser parser = new JsonParser();
		JsonObject object = parser.parse(json).getAsJsonObject();

		return object.get("name").getAsString();
	}

}
